
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>社交网站手机端文章列表</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: #f8f9fa;
            padding-bottom: 60px; /* 为底部导航留出空间 */
        }
        
        .article-list {
            background-color: white;
            border-radius: 12px;
            margin-bottom: 12px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        
        /* 顶部导航栏 */
        .top-nav {
            background-color: white;
            border-bottom: 1px solid #eee;
            padding: 12px 16px;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: white;
            border-top: 1px solid #eee;
            display: flex;
            justify-content: space-around;
            padding: 8px 0;
            z-index: 100;
        }
        
        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #666;
            text-decoration: none;
            font-size: 10px;
        }
        
        .bottom-nav-item.active {
            color: #0d6efd;
        }
        
        .bottom-nav-item i {
            font-size: 20px;
            margin-bottom: 4px;
        }
        
        /* 用户信息区域 */
        .article-author {
            display: flex;
            align-items: center;
            padding: 12px 16px;
        }
        
        .author-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 10px;
        }
        
        .author-info {
            flex: 1;
        }
        
        .author-name {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 2px;
        }
        
        .post-time {
            font-size: 12px;
            color: #666;
        }
        
        /* 文章内容 */
        .article-content {
            padding: 0 16px 12px;
        }
        
        .article-text {
            font-size: 15px;
            line-height: 1.5;
            margin-bottom: 12px;
        }
        
        /* 图片容器 */
        .article-images {
            margin-bottom: 12px;
        }
        
        .single-image {
            width: 100%;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .single-image img {
            width: 100%;
            height: auto;
        }
        
        .multi-images {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 4px;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .multi-images img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* 视频内容样式 */
        .article-video {
            position: relative;
            width: 100%;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 12px;
        }
        
        .article-video img {
            width: 100%;
            height: auto;
        }
        
        .video-play-btn {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 48px;
            height: 48px;
            background-color: rgba(0,0,0,0.5);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }
        
        /* 互动区域 */
        .article-actions {
            display: flex;
            justify-content: space-around;
            padding: 8px 0;
            border-top: 1px solid #eee;
            font-size: 14px;
        }
        
        .action-item {
            display: flex;
            align-items: center;
            color: #666;
            text-decoration: none;
            padding: 4px 0;
        }
        
        .action-item i {
            margin-right: 6px;
            font-size: 16px;
        }
        
        .action-item:hover, .action-item.active {
            color: #0d6efd;
        }
        
        /* 长文预览样式 */
        .article-preview {
            border: 1px solid #eee;
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 12px;
        }
        
        .preview-title {
            font-weight: 600;
            margin-bottom: 4px;
        }
        
        .preview-excerpt {
            font-size: 13px;
            color: #666;
            margin-bottom: 8px;
        }
        
        .preview-link {
            font-size: 13px;
            color: #0d6efd;
        }
        
        /* 话题标签 */
        .topic-tag {
            display: inline-block;
            background-color: #f0f2f5;
            color: #0d6efd;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 13px;
            margin-right: 6px;
            margin-bottom: 6px;
            text-decoration: none;
        }
        
        /* 分隔符 */
        .section-title {
            padding: 16px 16px 8px;
            font-size: 16px;
            font-weight: 600;
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="top-nav d-flex justify-content-between align-items-center">
        <h5 class="mb-0">社交圈</h5>
        <div>
            <button class="btn btn-link text-dark p-0 ms-2">
                <i class="fas fa-search"></i>
            </button>
            <button class="btn btn-link text-dark p-0 ms-3">
                <i class="fas fa-plus-square"></i>
            </button>
        </div>
    </div>
    
    <!-- 文章列表区域 -->
    <div class="container px-0">
        <!-- 1. 单图文章 -->
        <div class="section-title">单图文章</div>
        <div class="article-list">
            <div class="article-author">
                <img src="https://picsum.photos/id/64/100/100" alt="用户头像" class="author-avatar">
                <div class="author-info">
                    <div class="author-name">张小明</div>
                    <div class="post-time">今天 08:45</div>
                </div>
                <button class="btn btn-link text-dark p-0">
                    <i class="fas fa-ellipsis-h"></i>
                </button>
            </div>
            
            <div class="article-content">
                <div class="article-text">
                    今天的日出太美了，早起爬山果然是值得的！分享给大家~ #自然风光 #旅行
                </div>
                
                <a href="#" class="topic-tag">#自然风光</a>
                <a href="#" class="topic-tag">#旅行</a>
                
                <div class="article-images">
                    <div class="single-image">
                        <img src="https://picsum.photos/id/1015/800/600" alt="文章图片">
                    </div>
                </div>
            </div>
            
            <div class="article-actions">
                <a href="#" class="action-item">
                    <i class="far fa-heart"></i>
                    <span>248</span>
                </a>
                <a href="#" class="action-item">
                    <i class="far fa-comment"></i>
                    <span>36</span>
                </a>
                <a href="#" class="action-item">
                    <i class="far fa-share-square"></i>
                    <span>分享</span>
                </a>
                <a href="#" class="action-item">
                    <i class="far fa-bookmark"></i>
                    <span>收藏</span>
                </a>
            </div>
        </div>
        
        <!-- 2. 多图文章 -->
        <div class="section-title">多图文章</div>
        <div class="article-list">
            <div class="article-author">
                <img src="https://picsum.photos/id/65/100/100" alt="用户头像" class="author-avatar">
                <div class="author-info">
                    <div class="author-name">美食家小李</div>
                    <div class="post-time">昨天 19:32</div>
                </div>
                <button class="btn btn-link text-dark p-0">
                    <i class="fas fa-ellipsis-h"></i>
                </button>
            </div>
            
            <div class="article-content">
                <div class="article-text">
                    周末在家尝试做了一顿大餐，有红烧肉、清蒸鱼和蒜蓉西兰花，味道还不错！你们周末都做了什么好吃的？
                </div>
                
                <div class="article-images">
                    <div class="multi-images">
                        <img src="https://picsum.photos/id/292/300/300" alt="美食图片1">
                        <img src="https://picsum.photos/id/431/300/300" alt="美食图片2">
                        <img src="https://picsum.photos/id/365/300/300" alt="美食图片3">
                    </div>
                </div>
            </div>
            
            <div class="article-actions">
                <a href="#" class="action-item active">
                    <i class="fas fa-heart"></i>
                    <span>512</span>
                </a>
                <a href="#" class="action-item">
                    <i class="far fa-comment"></i>
                    <span>89</span>
                </a>
                <a href="#" class="action-item">
                    <i class="far fa-share-square"></i>
                    <span>分享</span>
                </a>
                <a href="#" class="action-item">
                    <i class="far fa-bookmark"></i>
                    <span>收藏</span>
                </a>
            </div>
        </div>
        
        <!-- 3. 视频文章 -->
        <div class="section-title">视频内容</div>
        <div class="article-list">
            <div class="article-author">
                <img src="https://picsum.photos/id/91/100/100" alt="用户头像" class="author-avatar">
                <div class="author-info">
                    <div class="author-name">运动达人</div>
                    <div class="post-time">3天前</div>
                </div>
                <button class="btn btn-link text-dark p-0">
                    <i class="fas fa-ellipsis-h"></i>
                </button>
            </div>
            
            <div class="article-content">
                <div class="article-text">
                    今天的篮球训练片段，新学的过人技巧，大家觉得怎么样？#篮球 #运动
                </div>
                
                <a href="#" class="topic-tag">#篮球</a>
                <a href="#" class="topic-tag">#运动</a>
                
                <div class="article-video">
                    <img src="https://picsum.photos/id/1058/800/450" alt="视频封面">
                    <div class="video-play-btn">
                        <i class="fas fa-play"></i>
                    </div>
                    <div style="position: absolute; bottom: 8px; right: 8px; background-color: rgba(0,0,0,0.5); color: white; padding: 2px 6px; border-radius: 4px; font-size: 12px;">
                        01:45
                    </div>
                </div>
            </div>
            
            <div class="article-actions">
                <a href="#" class="action-item">
                    <i class="far fa-heart"></i>
                    <span>326</span>
                </a>
                <a href="#" class="action-item">
                    <i class="far fa-comment"></i>
                    <span>42</span>
                </a>
                <a href="#" class="action-item">
                    <i class="far fa-share-square"></i>
                    <span>分享</span>
                </a>
                <a href="#" class="action-item">
                    <i class="far fa-bookmark"></i>
                    <span>收藏</span>
                </a>
            </div>
        </div>
        
        <!-- 4. 长文预览 -->
        <div class="section-title">长文内容</div>
        <div class="article-list">
            <div class="article-author">
                <img src="https://picsum.photos/id/26/100/100" alt="用户头像" class="author-avatar">
                <div class="author-info">
                    <div class="author-name">旅行日记</div>
                    <div class="post-time">上周</div>
                </div>
                <button class="btn btn-link text-dark p-0">
                    <i class="fas fa-ellipsis-h"></i>
                </button>
            </div>
            
            <div class="article-content">
                <div class="article-text">
                    这次去云南旅行的一些感悟，分享给大家...
                </div>
                
                <div class="article-preview">
                    <div class="preview-title">云南十日游全攻略：从大理到丽江的绝美风景</div>
                    <div class="preview-excerpt">
                        云南一直是我向往的旅行目的地，今年终于有机会踏上这片土地。从大理的风花雪月到丽江的古城风情，再到香格里拉的壮丽...
                    </div>
                    <a href="#" class="preview-link">阅读全文 <i class="fas fa-angle-right"></i></a>
                </div>
                
                <div class="article-images">
                    <div class="single-image">
                        <img src="https://picsum.photos/id/1036/800/400" alt="旅行图片">
                    </div>
                </div>
            </div>
            
            <div class="article-actions">
                <a href="#" class="action-item">
                    <i class="far fa-heart"></i>
                    <span>789</span>
                </a>
                <a href="#" class="action-item">
                    <i class="far fa-comment"></i>
                    <span>156</span>
                </a>
                <a href="#" class="action-item">
                    <i class="far fa-share-square"></i>
                    <span>分享</span>
                </a>
                <a href="#" class="action-item active">
                    <i class="fas fa-bookmark"></i>
                    <span>收藏</span>
                </a>
            </div>
        </div>
        
        <!-- 5. 纯文字动态 -->
        <div class="section-title">纯文字动态</div>
        <div class="article-list">
            <div class="article-author">
                <img src="https://picsum.photos/id/60/100/100" alt="用户头像" class="author-avatar">
                <div class="author-info">
                    <div class="author-name">程序员小王</div>
                    <div class="post-time">刚刚</div>
                </div>
                <button class="btn btn-link text-dark p-0">
                    <i class="fas fa-ellipsis-h"></i>
                </button>
            </div>
            
            <div class="article-content">
                <div class="article-text">
                    今天终于解决了困扰我一周的技术难题，原来问题出在一个小小的配置上！果然编程就是这样，有时候看似复杂的问题，答案往往很简单。分享一下这个经验，希望能帮到遇到同样问题的朋友。

                    其实关键在于理解框架的底层原理，而不是仅仅停留在API的使用上。#编程 #技术分享
                </div>
                
                <a href="#" class="topic-tag">#编程</a>
                <a href="#" class="topic-tag">#技术分享</a>
            </div>
            
            <div class="article-actions">
                <a href="#" class="action-item">
                    <i class="far fa-heart"></i>
                    <span>42</span>
                </a>
                <a href="#" class="action-item">
                    <i class="far fa-comment"></i>
                    <span>18</span>
                </a>
                <a href="#" class="action-item">
                    <i class="far fa-share-square"></i>
                    <span>分享</span>
                </a>
                <a href="#" class="action-item">
                    <i class="far fa-bookmark"></i>
                    <span>收藏</span>
                </a>
            </div>
        </div>
    </div>
    
    <!-- 底部导航 -->
    <div class="bottom-nav">
        <a href="#" class="bottom-nav-item active">
            <i class="fas fa-home"></i>
            <span>首页</span>
        </a>
        <a href="#" class="bottom-nav-item">
            <i class="fas fa-compass"></i>
            <span>发现</span>
        </a>
        <a href="#" class="bottom-nav-item">
            <i class="fas fa-plus-circle"></i>
            <span>发布</span>
        </a>
        <a href="#" class="bottom-nav-item">
            <i class="fas fa-bell"></i>
            <span>通知</span>
        </a>
        <a href="#" class="bottom-nav-item">
            <i class="fas fa-user"></i>
            <span>我的</span>
        </a>
    </div>

    <!-- Bootstrap 5 JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 为互动按钮添加点击效果
        document.addEventListener('DOMContentLoaded', function() {
            // 点赞按钮交互
            const likeButtons = document.querySelectorAll('.action-item .fa-heart');
            likeButtons.forEach(btn => {
                btn.parentElement.addEventListener('click', function(e) {
                    e.preventDefault();
                    const icon = this.querySelector('i');
                    const countEl = this.querySelector('span');
                    
                    if (icon.classList.contains('far')) {
                        // 未点赞状态，切换为已点赞
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('active');
                        // 数字加1
                        countEl.textContent = parseInt(countEl.textContent) + 1;
                    } else {
                        // 已点赞状态，切换为未点赞
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('active');
                        // 数字减1
                        countEl.textContent = parseInt(countEl.textContent) - 1;
                    }
                });
            });
            
            // 收藏按钮交互
            const bookmarkButtons = document.querySelectorAll('.action-item .fa-bookmark');
            bookmarkButtons.forEach(btn => {
                btn.parentElement.addEventListener('click', function(e) {
                    e.preventDefault();
                    const icon = this.querySelector('i');
                    
                    if (icon.classList.contains('far')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('active');
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('active');
                    }
                });
            });
        });
    </script>
</body>
</html>
